package org.hellhouse.thehungryslingshot.model;

import android.graphics.Bitmap;

public class Bullet {

	// attributes
	private int originalX;
	private int originalY;
	private int currentX;
	private int currentY;
	private int speed;
	private double direction;
	private Bitmap image;
	private int acceleration;

	// constructor
	public Bullet(int originalX, int originalY, Bitmap image) {
		this.originalX = originalX;
		this.originalY = originalY;
		this.image = image;
	}

	// methods
	public void modifyDirection(double modDirection) {
		this.direction += modDirection;
		if (direction > 360) {
			direction -= 360;
		} else if (direction < 0) {
			direction += 360;
		}
	}

	public void update() {

	}

	// methods: getters
	public int getOriginalX() {
		return originalX;
	}

	public int getOriginalY() {
		return originalY;
	}

	public int getCurrentX() {
		return currentX;
	}

	public int getCurrentY() {
		return currentY;
	}

	public int getSpeed() {
		return speed;
	}

	public double getDirection() {
		return direction;
	}

	public Bitmap getImage() {
		return image;
	}

	public int getAcceleration() {
		return acceleration;
	}

	// methods: setters
	public void setOriginalX(int originalX) {
		this.originalX = originalX;
	}

	public void setOriginalY(int originalY) {
		this.originalY = originalY;
	}

	public void setCurrentX(int currentX) {
		this.currentX = currentX;
	}

	public void setCurrentY(int currentY) {
		this.currentY = currentY;
	}

	public void setSpeed(int speed) {
		this.speed = speed;
	}

	public void setImage(Bitmap image) {
		this.image = image;
	}

	public void setAcceleration(int acceleration) {
		this.acceleration = acceleration;
	}

}
